import request from '@/utils/request'

/* 列表分页*/
export function selectShipmentPage(data) {
  return request({
    url: '/erp/shipment/selectPageWithOrder',
    method: 'post',
    data: data
  })
}

/* 新增*/
export function saveShipment(data) {
  return request({
    url: '/erp/shipment/saveShipment',
    method: 'post',
    data: data
  })
}

/* 修改*/
export function updateShipmentById(data) {
  return request({
    url: '/erp/shipment/updateShipmentById',
    method: 'post',
    data: data
  })
}

/* 根据id查询*/
export function selectShipmentById(data) {
  return request({
    url: '/erp/shipment/selectShipmentById/' + data,
    method: 'post'
  })
}

/* 根据订单id查询*/
export function selectShipmentByOrderId(data) {
  return request({
    url: '/erp/shipment/selectShipmentByOrderId/' + data,
    method: 'post'
  })
}

/* 删除*/
export function deleteShipment(data) {
  return request({
    url: '/erp/shipment/deleteShipment',
    method: 'post',
    data: data
  })
}

/* 查询送货方式的数量*/
export function selectShipmentTypeCount(data) {
  return request({
    url: '/erp/shipment/selectShipmentTypeCount',
    method: 'post',
    data: data
  })
}

/* /!* 发货*!/
export function delivery(data) {
  return request({
    url: '/erp/shipment/delivery',
    method: 'post',
    data: data
  })
}

/!* 确认签收*!/
export function confirmSign(data) {
  return request({
    url: '/erp/shipment/confirmSign',
    method: 'post',
    data: data
  })
} */
